package cn.dkk.structure_design.proxy.static_proxy;

import cn.dkk.structure_design.proxy.pojo.SaleTickets;
import cn.dkk.structure_design.proxy.pojo.TranStation;

/**
 * @author dkk
 * @date 2022/7/10
 * @desc
 */
public class ProxyPoint implements SaleTickets {

    private TranStation target=new TranStation();

    @Override
    public void sell() {
        // 代码增强
        System.out.println("代理处收取服务费用");
        // 原目标对象逻辑
        target.sell();
    }
}
